using UnityEngine;

[ExecuteInEditMode]
public class PresetsTrampoline : MonoBehaviour
{
	private ControllerTrampoline controller;

	public float force = 20f;

	private void LateUpdate()
	{
		if (Application.isEditor && !Application.isPlaying)
		{
			if (controller == null)
			{
				controller = base.gameObject.GetComponent<RemoteControl>().controller.GetComponent<ControllerTrampoline>();
				force = controller.force;
			}
			SetValues();
		}
	}

	public void SetValues()
	{
		if (controller != null)
		{
			controller.force = force;
		}
	}
}
